class CreateFeedbacks < ActiveRecord::Migration
  def self.up
    create_table :feedbacks do |t|
      t.text :title
      t.text :description, :default => ""
      t.integer :votes, :default => 0
      t.boolean :anonymous, :default => false
      t.references :user

      t.timestamps
    end
  end

  def self.down
    drop_table :feedbacks
  end
end
